package com.tbvtc.agriculturalcreditchainserver2025.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tbvtc.agriculturalcreditchainserver2025.dto.ChatMessage.GetAllChatValueDto;
import com.tbvtc.agriculturalcreditchainserver2025.entity.ChatMessage;
import com.tbvtc.agriculturalcreditchainserver2025.entity.websocket.WebSocketMessage;
import com.tbvtc.agriculturalcreditchainserver2025.utils.RUtils;
import com.tbvtc.agriculturalcreditchainserver2025.utils.Result;

import java.io.IOException;

/**
 * <p>
 * 聊天消息主表（存储单聊/群聊/广播消息） 服务类
 * </p>
 *
 * @author author
 * @since 2025-11-03
 */
public interface IChatMessageService extends IService<ChatMessage> {

    Long singleSend(WebSocketMessage webSocketMessage) throws IOException;


    Result getAllChatValue(GetAllChatValueDto getAllChatValueDto);

    String getCount( String sendUserId, Long id);
}
